#coding:utf-8
import urllib

def url_decoding(url):
	#url解码
	return urllib.unquote(str(url))

def url_encoded(url):
	#url编码
	return urllib.quote(str(url))


if __name__ == '__main__':

	print url_decoding("%3C%3Fxml+version%3D%221.0%22")
	print url_encoded('<?xml+version="1.0"')

	